<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
		
<ui:composition template="_index.xhtml">
	<ui:define name="corpo">		
	
		<div id="conteudo" align="center">
		
		<p:growl id="grow" showDetail="true" sticky="true">
			
			<h:form id="formlogin">
			<p:fieldset style="background-image: url(resources/imagens/blueAbs.png);"><br /><br />
			
			<p:messages/>
			
<!-- 			<p:fieldset style="background-image: url(resources/imagens/seila_eu.jpg);"><br /><br /> -->

				<h:panelGrid columns="4">
						
				<h:outputLabel value="MATRICULA: " />
				<p:inputText value="#{loginBean.funcionario.matricula}" />

				<h:outputLabel value="SENHA: " />
				<p:password value="#{loginBean.funcionario.senha}" />
				<br /><br />

				<p:commandButton action="#{loginBean.efetuaLogin}"
					value="Efetuar Login" style="position: center;" /><br /><br /><br /><br />
					
					</h:panelGrid>
					
				</p:fieldset>	<br /><br />
					
				<p:commandLink value="Esqueci minha senha" action="javascript:void(0)" onclick="dlgSenha.show();" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<p:commandLink value="Solicitação de Cadastro" action="javascript:void(0)" onclick="dlgSolicit.show();" />

				</h:form>
				</p:growl>
				
				</div>
				
				<h:form>
				
				<p:dialog header="Esqueceu a Senha?" modal="true" showEffect="highlight" hideEffect="highlight" widgetVar="dlgSenha" resizable="false">
				<h:panelGrid columns="2" id="display">
					<p:commandButton value="SIM" action="EsqueciMinhaSenha.xhtml?faces-redirect=true" />
					<p:commandButton value="NAO" action="index.xhtml?faces-redirect=true" />	
				</h:panelGrid>
				</p:dialog>

				<p:dialog header="Deseja fazer a solicitação de cadastro?" modal="true" showEffect="highlight" hideEffect="highlight" widgetVar="dlgSolicit" resizable="false">
				<h:panelGrid columns="2" id="display2">
					<p:commandButton value="SIM" action="SolicitacaoDeCadastro.xhtml?faces-redirect=true" />
					<p:commandButton value="NAO" action="index.xhtml?faces-redirect=true" />	
				</h:panelGrid>
				</p:dialog>
				
				</h:form>

			

	</ui:define>
</ui:composition>

</html>